<script setup>
const emit = defineEmits(['upload']);

function handleClick() {
  emit('upload');
}
</script>

<template>
  <div class="upload-card" @click="handleClick">
    <div class="upload-icon">+</div>
    <div class="upload-text">上传新视频</div>
  </div>
</template>

<style scoped lang="scss">
.upload-card {
  background-color: #1f2129;
  border: 2px dashed #3a3e4b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 3/4;
  min-height: 200px;

  &:hover {
    border-color: #0096ff;
    background-color: rgba(0, 150, 255, 0.05);
    transform: translateY(-5px);
  }

  .upload-icon {
    font-size: 2.5rem;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0096ff, #6c47ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }

  .upload-text {
    color: #99a3a7;
    font-size: 1rem;
  }
}
</style>